package org.nfyszny.zzzs.modules.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.nfyszny.zzzs.modules.entity.ZzzsExamine;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nfyszny.zzzs.modules.vo.ExamineRecordVo;
import org.nfyszny.zzzs.modules.vo.TimeOutVo;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * @Description: 审批表
 * @Author: jeecg-boot
 * @Date: 2022-11-14
 * @Version: V1.0
 */
public interface IZzzsExamineService extends IService<ZzzsExamine> {
    /**
     * 检查状态是不是审批中
     */
    public Boolean checkStatus(String id);

    /**
     * 查询正在审批的备案
     *
     * @param queryWrapper
     * @param page
     * @return
     */
    IPage<ZzzsExamine> selectExamineList(QueryWrapper<ZzzsExamine> queryWrapper, Page<ZzzsExamine> page);

    IPage<ZzzsExamine> selectRecorded(QueryWrapper<ZzzsExamine> queryWrapper, Page<ZzzsExamine> page);

    /**
     * 审批备案
     *
     * @param recordVo
     */
    void examineRecord(ExamineRecordVo recordVo);

    /**
     * 按年度统计超时任务报表
     *
     * @return
     */
    List<TimeOutVo> getYearTimeoutInfo(String year) throws ParseException;

    List<TimeOutVo> getQuarteTimeoutInfo(String quarte);

    List<TimeOutVo> getMonthTimeoutInfo(String date) throws ParseException;
}
